package xyz.jangle.string;

public class StringMain {

	public static void main(String[] args) {
		String str = "8511416901P6E06D35437";
		System.out.println(str);
		char[] chars = str.toCharArray();
		
		for(int i=0;i<chars.length;i++) {
			System.out.println(chars[i] +" : "+ charToIntNum(chars[i]));
		}
//		String[] split = str.split("");
//		for (int i = 0; i < split.length; i++) {
//			System.out.println(split[i]);
//		}
		
		
	}
	
	
	private static int charToIntNum(char c) {
		if(c=='0')return 0;
		if(c=='1')return 1;
		if(c=='2')return 2;
		if(c=='3')return 3;
		if(c=='4')return 4;
		if(c=='5')return 5;
		if(c=='6')return 6;
		if(c=='7')return 7;
		if(c=='8')return 8;
		if(c=='9')return 9;
		return (c-55);

	}

}
